package cn.edu.lcu.cs.javaprogramming.oop.animal;

import lombok.Data;

import java.time.LocalDate;
import java.time.temporal.ChronoUnit;

/**
 * 鸟类，抽象类，不能实例化。
 *
 * @author: ling
 * @since: 2022-03-11 16:07
 **/
public abstract class Bird extends Animal implements Walkable {
    public Bird() {
        setSpeciesName("鸟类");
    }

    @Override
    public void walk() {
        System.out.println(getSpeciesName() + "两条腿走路");
    }

    @Override
    public void breath() {
        System.out.println(getSpeciesName() + "用肺呼吸");
    }

    @Override
    public void reproduce() {
        System.out.println(getSpeciesName() + "下蛋繁殖后代");
    }

}
